import request from '@/router/axios';
import { baseUrl } from '@/config/env';


//查询用户
export const getUserlist = (data) => request({
    url: baseUrl + '/api/users',
    method: 'get',
    params: data
  });
// 新增用户
export const adduser = (list) => request({
  url: baseUrl + '/api/register',
  method: 'post',
  data: list
});
// 修改用户
export const eidtUsers = (list) => request({
  url: baseUrl + '/api/users',
  method: 'put',
  data: list
});
// 删除用户
export const dletRoles = (list) => request({
  url: baseUrl + '/api/roles',
  method: 'delete',
  data: list
});
// 查询角色
export const rolesAll = () => request({
  url: baseUrl + '/api/roles/all' ,
  method: 'get'
})





